/**
 * @作者 chengxinxiaofeng
 * @时间 2019年7月20日10:10:54
 */
package com.chinaunicom.tour.sys.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Table;

import com.chinaunicom.tour.sys.entity.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ApiModel(value = "攻略表")
@Table(name = "stragegy")
@Data
@EqualsAndHashCode(callSuper=false)
public class Stragegy extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 6665594084507574639L;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "发表用户ID(user表主键)")
    private String userId;

    @ApiModelProperty(value = "发表用户昵称（与user表关联获取）")
    private String nickname;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "关注数量")
    private int collectCount;

    @ApiModelProperty(value = "当前登录用户是否关注（1为关注，0为未关注）")
    private int isCollected;

    @ApiModelProperty(value = "缩略图")
    private String thumbnail;
}
